#ifndef _PUBLIC_H_
#define _PUBLIC_H_
#include "REG52.H"
#include "INTRINS.H"

sbit AvoidanceRight_Pin = P3^6;
sbit AvoidanceLeft_Pin = P3^7;
sbit Beer_Pin = P3^2;

typedef unsigned char uchar;
typedef unsigned int uint;

extern uchar ultrasonic_flag;
extern uchar led_l_flag;
extern uchar led_r_flag;
extern uchar around_flag;

void Delay500us(uint x_500us);
void Delay100us(uchar x_100us);
void Delay10us(uchar x_10us);
void Delay100ms(uchar x_100ms);
void Delay150ms(void);
void Delay300ms();
void Delay500ms();

#endif